<?php

namespace app\adminapi\dto\sysuser;

class LoginRepVO implements \JsonSerializable
{
    private string $account;
    private string $token;
    private string $avatar;

    public function setAccount(string $account): self
    {
        $this->account = $account;
        return $this;
    }

    public function setToken(string $token): self
    {
        $this->token = $token;
        return $this;
    }

    public function setAvatar(string $avatar): self
    {
        $this->avatar = $avatar;
        return $this;
    }

    public function getAccount(): ?string
    {
        return $this->account;
    }

    public function getToken(): ?string
    {
        return $this->token;
    }

    public function getAvatar(): ?string
    {
        return $this->avatar;
    }

    public function jsonSerialize(): array
    {
        return [
            'account' => $this->account,
            'avatar' => $this->avatar,
            'token' => $this->token
        ];
    }
}